<template>
  <div class="signBotton" :style="{ top, left }">
    <el-form label-width="40px" class="demo-form-inline">
      <el-form-item label="底车">
        <el-select v-model="value" placeholder="玻璃数量" size="mini">
          <el-option
            v-for="item in options"
            :label="item.label"
            :value="item.value"
            :key="item.value"
          ></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="mini" :icon="icon">
          <slot></slot>
        </el-button>
        <el-button size="mini">重置</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  props: {
    top: {
      type: String,
      default: "0%",
    },
    left: {
      type: String,
      default: "0%",
    },
    icon: {
      type: String,
      default: "0%",
    },
  },
  data() {
    return {
      options: [
        {
          value: "1",
          label: "1",
        },
        {
          value: "2",
          label: "2",
        },
        {
          value: "3",
          label: "3",
        },
      ],
      value: 1,
    };
  },
};
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.signBotton {
  position: absolute;
  left: 0;
  top: 0;
  background-color: #fafafa;
  padding: 15px;
  box-shadow: 0 0 20px rgb(0 0 0 / 25%);
  ::v-deep .el-select {
    width: 98px;
    margin-bottom: 2px;
  }
  ::v-deep .el-form-item {
    margin-bottom: 0;
  }
  ::v-deep .el-form-item__content {
    margin-left: 0px !important;
  }
}
</style>